﻿using CanDichVu.Db;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CanDichVu.Service.Iservice
{
    public interface IPost
    {
        int addorUpdate(Post entity);
        List<Post> getListByChuyenMuc(int cateid, int take);
        List<Post> getListBythanhvien(int thanhvien, int take);
        List<Post> getListByQuanhuyen(int quanhuyenId, int take);
        List<Post> getListBytinhthanh(int TinhThanhId, int take);
        List<Post> Search(string cateId, int quanhuyen, int tinhthanh, string name, int take);
        Post GetById(int id);
        bool detele(int id);
        int capnhapView(int id, int view);
        int capnhatLike(int id, int like);
        int capnhatNgaySua(int id, DateTime datengaysua);
        int capnhattinnhanvip(int id, bool viptype, DateTime ngaynhantinvip, DateTime ngayhethan);
        List<Post> GetListPostVip(string cateId, bool type, bool checkdate, int take);
        List<Post> GetListOnCate(int cateId, bool type, bool checkdate, int take, int skip);
        List<Post> GetListOnTinhThanh(int cateId, bool type, bool checkdate, int take, int skip);
        List<Post> GetListOnQuanHuyen(int cateId, bool type, bool checkdate, int take, int skip);
        bool checkPostOfAccount(int postId, int accountId);
    }
}
